//
//  xsDigitalRobotBottomView.h
//  digital_robot_demo
//
//  Created by xskj on 2024/8/29.
//

#import <UIKit/UIKit.h>
#import "TextViewWithPlaceholder.h"
NS_ASSUME_NONNULL_BEGIN

@protocol xsDigitalRobotBottomViewProtoCol <NSObject>

@optional
- (void)DigitalRobotBottomViewCopywritingTextViewTextChange:(NSString *)textChangeString;

// 我的声音被点击
- (void)DigitalRobotBottomViewMyVoiceButtonEvent:(UIButton *)sender;

// 我的素材列表被点击
- (void)DigitalRobotBottomViewAddMaterialButtonEvent:(UIButton *)sender;

// 覆盖输入视频文案的button被点击
- (void)xsInputCopywritingButtonButtonEvent:(UIButton *)sender;

// 智能划词button被点击
- (void)xsZhiNengHuaCiButtonEvent:(UIButton *)sender;

@end

@interface xsDigitalRobotBottomView : UIView

@property (nonatomic, strong) UIButton *xsMaterialButton;// 素材
@property (nonatomic, strong) UIButton *xsTitleButton;// 标题

@property (nonatomic,assign)id<xsDigitalRobotBottomViewProtoCol> delegate;
@property (nonatomic,copy)void (^xsPreviewCallbackBlock)(UIButton *sender);// 预览block
@property (nonatomic,copy)void (^xsExportCallbackBlock)(UIButton *sender);// 导出block

@property (nonatomic,copy)void (^xsMaterialCallbackBlock)(UIButton *sender);// 素材block
@property (nonatomic,copy)void (^xsTitleCallbackBlock)(UIButton *sender);// 标题block
@property (nonatomic,copy)void (^xsSubtitlesCallbackBlock)(UIButton *sender);// 字幕block

// 改变显示添加素材文本
- (void)xsChangeAddMaterialLabelText:(NSString *)materialText;

// 改变显示添加素材文本左边小图标
- (void)xsChangeAddMaterialLabelLeftIcon:(NSString *)leftIconImageUrl;

// 改变显示的音乐标题
- (void)xsChangeMyVoiceButtonTitle:(NSString *)changeString;

// 是否显示智能划词button
//isShowStatu  YES显示  NO隐藏
- (void)xsIsShowZhiNengHuaCiButton:(BOOL)isShowStatu;

// 是否显示智能划词label
//isShowStatu  YES显示  NO隐藏
- (void)xsIsShowZhiNengHuaCiLabel:(BOOL)isShowStatu;

// 素材按钮是否被点击
// isClickStatu YES被点击了  NO未被点击
- (void)xsChangeMaterialButtonIsClick:(BOOL)isClickStatu;

// 设置视频文案文字
- (void)xsChangeInputCopywritingTextVWithString:(NSString *)textStr;

// 获取频文案文字
- (NSString *)xsGetInputCopywritingText;

// 标题按钮按钮是否被点击
// isClickStatu YES被点击了  NO未被点击
- (void)xsChangeTitleButtonIsClick:(BOOL)isClickStatu;

// 字幕按钮是否被点击
// isClickStatu YES被点击了  NO未被点击
- (void)xsChangeSubtitlesButtonIsClick:(BOOL)isClickStatu;

// 修改添加素材是否隐藏
- (void)xsChangexsAddMaterialButtonHidel:(BOOL)isHden;

- (void)xsChangeFrame;

- (void)xsChangeTopViewIsHidden:(BOOL)state;

@end

NS_ASSUME_NONNULL_END
